package com.ybkj.chat.module.login.activity;

import android.view.View;
import android.widget.TextView;

import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.manager.ActivityManager;
import com.ybkj.chat.module.MainActivity;
import com.ybkj.chat.module.login.presenter.LoginPresenter;
import com.ybkj.chat.module.login.view.ILoginAtView;

import butterknife.BindView;
import butterknife.OnClick;

public class LoginActivity extends BaseMvpActivity<LoginPresenter> implements ILoginAtView {
    //登录
    @BindView(R.id.tv_login)
    TextView tvLogin;
    //注册
    @BindView(R.id.tv_register)
    TextView tvRegister;
    //微信登录
    @BindView(R.id.wx_login)
    TextView wxLogin;
    //qq登录
    @BindView(R.id.qq_login)
    TextView qqLogin;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_login;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    public boolean isImmersiveStatusBar() {
        return true;
    }

    @Override
    public void gotoMainActivity() {

    }

    @Override
    public void gotoModifyPwdActivity() {

    }

    /**
     * 点击事件
     *
     * @param view
     */
    @OnClick({R.id.tv_login, R.id.tv_register, R.id.wx_login, R.id.qq_login})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            //登录
            case R.id.tv_login:
                ActivityManager.gotoActivity(mContext, IntoLoginActivity.class);
                break;
            //注册
            case R.id.tv_register:
                ActivityManager.gotoActivity(mContext, Register1Activity.class);
                break;
            //微信登录
            case R.id.wx_login:
                ActivityManager.gotoActivity(mContext, MainActivity.class);
                break;
            //QQ登录
            case R.id.qq_login:
                break;
        }
    }
}
